let name = "A"
const sum = function sum(...params) {
  let len = params.length
  let total = 0
  if (len === 0) return 0
  if (len === 1) return params[0]
  params.forEach(item => {
    total += item
  })
  return total
}
export default sum